﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;

namespace PTiRouZ.Net.SilverLight.Api.HelloTipi
{
    /// <summary>Erreur</summary>
    [DataContract]
    public class apierror
    {
        /// <summary>erreur renvoyé par l'api</summary>
        [DataMember]
        public string error { get; set; }
    }
    
    /// <summary>Site de famille</summary>
    [DataContract]
    public class site
    {
        /// <summary>identifiant du site</summary>
        [DataMember]
        public string name { get; set; }

        /// <summary>titre du site</summary>
        [DataMember]
        public string title { get; set; }
    }

    /// <summary>Objet refletant un user</summary>
    [DataContract]
    public class user
    {
        /// <summary>identifiant de l’utilisateur</summary>
        [DataMember]
        public int id { get; set; }

        /// <summary>nom complet de l’utilisateur</summary>
        [DataMember]
        public string name { get; set; }

        /// <summary>identifiant de l’utilisateur suivi de sa famille login#famille</summary>
        [DataMember]
        public string screen_name { get; set; }

        /// <summary>non utilisé</summary>
        //[DataMember]
        //public string location { get; set; }

        /// <summary>non utilisé</summary>
        //[DataMember]
        //public string description { get; set; }

        /// <summary>url de l'avatar du user</summary>
        [DataMember]
        public string profile_image_url { get; set; }

        /// <summary>url du profil de l’utilisateur</summary>
        [DataMember]
        public string url { get; set; }

        /// <summary>non utilisé</summary>
        //[DataMember]
        //public bool protected { get; set; }

        /// <summary>non utilisé</summary>
        [DataMember]
        public int followers_count { get; set; }
    }
}
